//
//  AnimationStore.h
//  Cocos2dAction
//
//  Created by waver on 10-7-8.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "CCEditorAction.h"
#import "CAnimationPlayW.h"
#import "CActionSpriteW.h"

enum EdKind {
	SINGLELEMENT = 1,
	MUTELEMENT = 2,
};

@interface CAnimationStoreW : NSObject {
	NSMutableDictionary  * __PlayStore;//store CAnimationPlayW
	NSMutableDictionary	 * __EditStore;//store CCEditorAction
	NSMutableDictionary  * __NameStore;
}

+(id)alloc;

-(id)Init;

-(id)FindObjectFormTag:(int)intTag;

+(CAnimationStoreW*)ShareAnimationStore;

//add a new editor file with a special tag,if the file and tag are not invalid return false; 
-(BOOL)AddEditorFile:(NSString*)fileName EditorKind:(int)kind Tag:(int)intTag;

-(CCAnimation*)CreateAnimation:(int)aniIndex doubleTime:(int)times fileTag:(int)intTag ;

-(CActionSpriteW*)CreateActionSprite: (int)aniIndex doubleTime:(int)times  cyc:(BOOL)IsCys fileTag:(int)intTag ; 

@end
